package cn.edu.cug.cs.gtl.docsrv.txt.service;

import cn.edu.cug.cs.gtl.mybatis.mapper.txt.TxtAll;
import cn.edu.cug.cs.gtl.mybatis.mapper.txt.TxtCatalog;
import cn.edu.cug.cs.gtl.mybatis.mapper.txt.TxtAll;
import cn.edu.cug.cs.gtl.mybatis.mapper.txt.TxtCatalog;
import cn.edu.cug.cs.gtl.protos.Document;
import cn.edu.cug.cs.gtl.protos.DocumentList;

import java.math.BigDecimal;
import java.util.List;

public interface TxtService {
    void addTxt(TxtAll txtAll);

    void addTxts(List<TxtAll> txtAllList);

    boolean addFromRawDB();

    List<TxtAll>  getTxtByName(String txtName);

    List<TxtAll> getTxtByEnTitle(String txtEnTitle);

    TxtAll getTxtByInternalId(BigDecimal valueOf);

    boolean deleteTxtByInternalId(BigDecimal valueOf);

    List<TxtCatalog> getTxtCatalogs();

    Document getDocumentByTxtInternalId(BigDecimal valueOf);

    List<TxtAll> getTxtByCnTitle(String txtCnTitle);

    DocumentList getDocumentsByCatalogInternalId(BigDecimal valueOf);

    List<BigDecimal> getTxtInternalIdsByCatalogInternalId(BigDecimal valueOf);
}
